<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>

<?php if(is_array($products_image_large)){  ?>

    <div id="prod_large_photo"><img id="prod_default_photo" src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_large[0]; ?>" alt="<?php echo $products_name;?>" title="<?php echo $products_name;?>"></div>
    <div id="prod_thumbnail">
    <?php for($i = 0; $i < count($products_image_small); $i++){  ?>
        <div class="list"><img onmouseover="showItemLarge('<?php echo $products_image_large[$i]; ?>')" src="<?php echo $products_image_small[$i]; ?>" ></div>
	<?php } ?>
    <?php
		if (is_int ( strpos ( $products_other_image, ';' ) )) {
			  $imgsrcs = split ( ';', $products_other_image );
			  for($i = 0; $i < count ( $imgsrcs ); $i ++) {
				if(strlen($imgsrcs[$i]) > 0){
				$product_img_url = DIR_WS_PRO_BIG. $imgsrcs[$i].'.jpg';
				$product_img_url2 = DIR_WS_PRO_SMALL . $imgsrcs[$i].'.jpg';
	?>
        <div class="list"><img onmouseover="showItemLarge('<?php echo $product_img_url; ?>')" src="<?php echo $product_img_url2; ?>" ></div>
	<?php
				}

			  }
		  }
	?>
    
    </div>

<?php } ?>
